Skip to content

feat(seer): Open the Seer Agent sidebar by default on select pages - #133295

Merged
bruno-garcia merged 3 commits into
masterfrom
feat/seer-explorer-auto-open
Dec 3, 2026
Merged

bruno-garcia merged 3 commits into
masterfrom
feat/seer-explorer-auto-open

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

The Seer Agent panel is hidden behind the "Ask Seer" button, and customer feedback says people miss it. Now that chat suggestions are tailored to each page, this opens the sidebar automatically on pages where Seer helps people get started. It's behind seer-explorer-auto-open, so #133294 has to land first.

Pages: dashboards list (including Sentry Built), monitors (/monitors/), alerts (/monitors/alerts/), and the trace waterfall. Single dashboard pages, issues, and explore pages are left alone.

  • It opens when one of those pages mounts, if the panel isn't already open, and it never closes the panel. Open state lives in sessionStorage and is shared by every page, so the panel doesn't flip on and off as you browse.
  • Closing the panel saves a dismissal in localStorage. The panel then stays closed on every page and in new tabs until the user opens it again, which clears the dismissal.
  • It only opens at the lg breakpoint (1200px) and wider. Below that, the sidebar docks to the bottom and covers about half the page. Phones and tablets never open it.
  • It only applies in sidebar mode, never the overlay drawer.
  • A new seer.explorer.global_panel.auto_opened event tells auto-opens apart from user opens (global_panel.opened fires for both).

Open decision: the breakpoint. 900px was suggested. lg keeps the panel docked on the right with the secondary nav expanded, and it's a one-line change either way.

Refs CW-3158

via @bruno-garcia.

--

View Session [Sentry]

Open the sidebar when the dashboards list, monitors, alerts, or trace
page mounts, behind the seer-explorer-auto-open flag. Skip it below the
lg breakpoint, where the panel docks to the bottom or crowds the page.

Closing the panel remembers the dismissal in localStorage, so it stays
closed on every page and tab until the user opens it again. The hook only
ever opens the panel and open state is already shared across pages, so
browsing between pages never flips it on and off.

Co-Authored-By: Bruno Garcia <1633368+bruno-garcia@users.noreply.github.com>
@linear-code

linear-code Bot commented Dec 2, 2026

Copy link
Copy Markdown

CW-3158

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Dec 2, 2026
@sentry-junior
sentry-junior Bot requested a review from bruno-garcia December 2, 2026 22:15
@bruno-garcia
bruno-garcia marked this pull request as ready for review December 3, 2026 00:59
@bruno-garcia
bruno-garcia requested review from a team as code owners December 3, 2026 00:59
Copilot AI balanced review requested due to automatic review settings December 3, 2026 00:59
@vercel

vercel Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
scraps Ignored Ignored Preview Dec 3, 2026 1:15am UTC

Request Review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Automatic opening steals page focus and can misattribute navigation analytics, while transferring Seer to picture-in-picture incorrectly persists a dismissal that suppresses future auto-opens.

5 open issues
What changed in this PR

Adds feature-gated automatic opening of the Seer sidebar on selected pages, with persistent dismissal preferences.

Changes:

  • Enables auto-open on dashboard lists, monitors, alerts, and trace waterfalls at desktop widths.
  • Saves dismissals across tabs and clears them when users reopen Seer.
  • Adds auto-open analytics and behavior tests.
File Description
static/​app/​views/​seerExplorer/​seerExplorerContextProvider.tsx Persists and clears dismissal preferences.
static/​app/​views/​seerExplorer/​hooks/​useAutoOpenSeerExplorer.tsx Implements guarded, page-mount auto-opening.
static/​app/​views/​seerExplorer/​hooks/​useAutoOpenSeerExplorer.spec.tsx Tests eligibility and dismissal behavior.
static/​app/​views/​performance/​traceDetails/​index.tsx Enables auto-open for trace waterfalls.
static/​app/​views/​detectors/​list/​allMonitors.tsx Enables auto-open for monitors.
static/​app/​views/​dashboards/​manage/​index.tsx Enables auto-open for dashboard lists.
static/​app/​views/​automations/​list.tsx Enables auto-open for alerts.
static/​app/​utils/​analytics/​seerAnalyticsEvents.tsx Registers the auto-open analytics event.

Review effort: Balanced

Auto-opening no longer moves focus into the Seer composer, and it attributes
the open to the page that asked instead of the previous route. Popping the
sidebar out into picture-in-picture no longer counts as the user closing
Seer, so it doesn't suppress later auto-opens.

Refs CW-3158
@bruno-garcia
bruno-garcia merged commit 68fc2f5 into master Dec 3, 2026
89 checks passed
@bruno-garcia
bruno-garcia deleted the feat/seer-explorer-auto-open branch December 3, 2026 02:43

This branch was successfully deployed

2 active (1 outdated) deployments
Preview – sentry — e2daa125 Deployed Dec 3, 2026 by vercel[bot]
Preview — 4b5ae614 Deployed Dec 2, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants